@import "~./_common.scss";  



//my.css
 

#{$all} {
	margin: 0;
	padding: 0;
}

* {
	outline: 0 !important;
}

#{$hs}{
	font-weight:normal; 
}
button,
input[type=radio],
input[type=checkbox],
a {
	cursor: pointer;
}

a {
	text-decoration: none;
	background: transparent;
	color: inherit;
	font-size: inherit
}

a img {
	border: 0 none;
}

ul {
	list-style: none;
}


html {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}

audio,
canvas,
progress,
video,
.row {
	display: inline-block;
	vertical-align: baseline;
}

*,
*:after,
*:before {
	box-sizing: inherit;
	-moz-box-sizing: inherit;
	-webkit-box-sizing: inherit;
}

.row {
	clear: both;
	width: 100%;
}

*:after {
	content: '';
	clear: both;
	height: 0;
}


/*text*/

.small {
	font-size: $f-sm;
}

.normal {
	font-weight: normal;
}

.bold {
	font-weight: 700;
}

.f-blue {
	color: $blue;
}

.f-red {
	color:$red;
}

.f-orange {
	color:$orange;
}
.f-green{
	color: $green
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.text-center {
	text-align: center;
}

/*container*/
.pull-right {
	float: right;
}

.pull-left {
	float: left;
}
.block{
	display: block;
}
.none{
	display: none;
}
@if $flex == true{
//flex 下 text-align pull-right 无效
//并排
.flex-center,.flex-left,.flex-right,.flex,.flex-auto{
	display: flex;
}
.flex-center{
	justify-content:center;
}
.flex-left{
	justify-content:flex-start;
}
.flex-right{
	justify-content:flex-end;
}


//中对齐 
.flex-auto{
	justify-content:center;
	align-items: center ;
	flex:0 0 auto;
}
.flex-middle{
	align-items: center ;
}
//上对齐
.flex-top{
	align-items: flex-start ;
}
//下对齐
.flex-bottom{
	align-items: flex-end ;
}
.item-inline{
	display: inline-flex;
}
//父级为flex 
.item-center{
align-self:center;
}
.item-top{
	align-self:flex-start;
}
.item-bottom{
	align-self:flex-end;
}

}
@if $mobile == true {
	.container{
		margin-left:15px;
		margin-right:15px; 
	}
    
} 
.box img{
	max-width:100%;
}
/*page*/
html,body,#app{
	height: 100%;
}
body{
	font-family: $f-style;
	font-size: size(14,px);
	background: $bg;
}

.page{
	position: relative;
	height: inherit;
	display: flex;
}
.el-alert--success{
	background-color: $blue;
}
// 页面sidenav
.sidebar-nav.el-menu{
	width: 200px;
	background-color: $sideBg;
	color: #fff;
	text-align: center;

	//logo 标题
	.nav-logo{
		font-size: 24px;
		height: 60px;
		line-height: 60px;
	}
	>.el-menu-item,>.el-submenu{
		//选项	
		color: inherit;
		border-left:4px solid  $sideBg;
		&:hover,&:active,&.is-active,&.is-opened,.el-menu{
			background: none;
			border-left:4px solid $sideHover;
		}
	}
	.el-menu-item,.el-submenu__title{
		//选项	{
		color: inherit;
		background: none;
		&:hover,&:active,&.is-active,&.is-opened,.el-menu{
			background: none;
		}
	}
}
@media (max-width:$sm) {
	//手机端 导航
	.page{
		display: block;
	}
	.sidebar-nav.el-menu{
		position: absolute;
		left: 0;
		top:0;
		height: 100%;
	}

}
// content
.content{
	flex: 1 1 auto;
	height: 100%;
 }
.navbar-header{
	//content header
	width: 100%;
	height: 60px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding-right: 10px;
	background: $headerBg;
	
	.navbar-icon{
		width: 35px;
		height: 35px;
		padding: 0;
	}
	
}